<template>
   <!-- 加载图标样式14 -->
   <div class="loading">
      <div></div>
      <div></div>
   </div>
</template>

<script setup>

</script>

<style scoped lang='scss'>
.loading>div,
.loading {
   box-sizing: border-box;
   position: relative
}

.loading {
   color: #1678ff;
   display: block;
   font-size: 0;
   height: 48px;
   width: 48px;
}

.loading.la-dark {
   color: #333
}

.loading>div {
   animation: cube-transition 1.6s ease-in-out 0s infinite;
   background-color: currentColor;
   border: 0 solid;
   border-radius: 0;
   display: inline-block;
   float: none;
   height: 14px;
   left: 0;
   margin-left: -7px;
   margin-top: -7px;
   position: absolute;
   top: 0;
   width: 14px
}

.loading>div:last-child {
   animation-delay: -.8s
}

.loading.la-sm {
   height: 16px;
   width: 16px
}

.loading.la-sm>div {
   height: 6px;
   margin-left: -3px;
   margin-top: -3px;
   width: 6px
}

.loading.la-2x {
   height: 64px;
   width: 64px
}

.loading.la-2x>div {
   height: 28px;
   margin-left: -14px;
   margin-top: -14px;
   width: 28px
}

.loading.la-3x {
   height: 96px;
   width: 96px
}

.loading.la-3x>div {
   height: 42px;
   margin-left: -21px;
   margin-top: -21px;
   width: 42px
}

@keyframes cube-transition {
   25% {
      left: 100%;
      top: 0;
      transform: scale(.5) rotate(-90deg)
   }

   50% {
      left: 100%;
      top: 100%;
      transform: scale(1) rotate(-180deg)
   }

   75% {
      left: 0;
      top: 100%;
      transform: scale(.5) rotate(-270deg)
   }

   to {
      left: 0;
      top: 0;
      transform: scale(1) rotate(-1turn)
   }
}
</style>
